package com.eidos.blogs.common.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ：Eidos
 * @date ：Created in 2020/12/9
 * @description：数据源基础类
 * @modified By：
 * @version: 1.0
 */
@Data
public class DataSourceDto implements Serializable {

    @ApiModelProperty(value = "内码")
    private String id;

    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @ApiModelProperty(value = "数据库地址", required = true)
    private String url;

    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @ApiModelProperty(value = "数据库类型", required = true)
    private String type;
}
